package com.erp.erp_dao.Cost;

import com.erp.erp_entitys.Cost.entity.CostApportionmentEntity;
import com.erp.erp_entitys.warehouse.entity.PlanInstoreProductEntity;

import java.util.List;


/**
 * @author zjk
 * @version 1.0
 * @description
 * @date 2021-06-14 3:53
 */
public interface CostApportionmentDao {

    int deleteByPrimaryKey(Integer id);

    int insert(CostApportionmentEntity record);
    /**
     * 保存入库费用分摊信息
     * @param record
     * @return
     */
    int insertSelective(CostApportionmentEntity record);

    CostApportionmentEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CostApportionmentEntity record);

    int updateByPrimaryKey(CostApportionmentEntity record);

    /**
     * 根据费用编码获取入库费用详情
     * @param costCode
     * @return
     */
    List<CostApportionmentEntity> getCostApportionmentListByPage(String costCode);


    /**
     * 修改仓库管理-备货入库产品表 --主要修改分摊费用单价
     *
     * @param planInstoreProduct 实例对象
     * @return 影响行数
     */
    int updatePlanInstoreProduct(PlanInstoreProductEntity planInstoreProduct);


    /**
     * 根据条件删除入库费用分摊信息
     * @param record
     * @return
     */
    int deleteByPrimary(CostApportionmentEntity record);
}
